package com.youku.ast;

/**
 * for循环语句
 * @author loda
 *
 */
public class ForLoopAst extends Ast{

	public ForLoopAst(Ast... asts){
		super(asts);
	}
	
	public StatementAst init(){
		return (StatementAst) getChild(0);
	}
	
	public StatementAst condition(){
		return (StatementAst) getChild(1);
	}
	
	public StatementAst step(){
		return (StatementAst)getChild(2);
	}
	
	public BlockAst body(){
		return (BlockAst)getChild(3);
	}
}
